package ConveyorBelt;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

import ConveyorBelt.State.CreateMap;
import ConveyorBelt.State.EndOfGame;
import ConveyorBelt.State.Game;
import ConveyorBelt.State.HowToPlayTable;
import ConveyorBelt.State.LevelLose;
import ConveyorBelt.State.LevelWin;
import ConveyorBelt.State.MainMenu;
import ConveyorBelt.State.Pause;
import ConveyorBelt.State.ScoreTable;

public class ConveyorBelt extends StateBasedGame {
	public ConveyorBelt() {
		super("Conveyor Belt Game");
	}
	public static void main(String argv[]) throws SlickException {
		AppGameContainer app = new AppGameContainer(new ConveyorBelt());
		app.setDisplayMode(1280, 720, false);
		app.setShowFPS(false);
		app.start();
	}
	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		addState(new MainMenu());
		addState(new Game());
		addState(new CreateMap());
		addState(new HowToPlayTable());
		addState(new ScoreTable());
		addState(new Pause());
		addState(new LevelWin());
		addState(new LevelLose());
		addState(new EndOfGame());
	}
}
